package com.ykq.system.controller;

import com.aaa.common.entity.AclPermission;
import com.aaa.common.vo.Result;
import com.ykq.system.service.AclPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/system/permission")
public class AclPermissionController {

    @Autowired
    private AclPermissionService permissionService;

    @GetMapping("/getByUserid/{userid}")
    public Result<AclPermission> getByUserid(@PathVariable Long userid){
        return permissionService.findByUserId(userid);
    }
}
